package n9.echo.test;

import com.n9.qq.client.FromServiceMsg;

/**
 * @author ice
 * @since 2019/1/31 17:57
 */
public class EchoFromServiceMsg implements FromServiceMsg {

    private Integer id;
    private String msg;


    @Override
    public void read(byte[] data) {
        this.id = 1;
        this.msg = new String(data);
    }

    public String getMsg() {
        return this.msg;
    }

    @Override
    public Integer getId() {
        return this.id;
    }
}
